package com.njust.bean;

/**
 * 钥匙表
 * @author lfy
 *
 */
public class Key {
	
	private Integer id;//钥匙的id
	private String keyName;//钥匙的名
	
	private Lock lock;//当前钥匙能开哪个锁；


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getKeyName() {
		return keyName;
	}

	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}

	public Lock getLock() {
		return lock;
	}

	public void setLock(Lock lock) {
		this.lock = lock;
	}

	@Override
	public String toString() {
		return "Key{" +
				"id=" + id +
				", keyName='" + keyName + '\'' +
				", lock=" + lock +
				'}';
	}
}
